import request from "../utils/axios";

// 获取实时架次
export function realTimeFlights(params) {
  return request.post("/flight-number/realtime", params);
}

// 获取历史架次
export function historicalFlights(params) {
  return request.post("/flight-number/history", params);
}
// 获取历史轨迹
export function historicalTrajectory(params) {
  return request.get("/track/history?airplaneOrder=" + params);
}

// 获取飞机详情
export function getAircraftDetail(params) {
  return request.post("/gl/createGl", params);
}

// 获取公共字典
export function getDictList(params) {
  return request.get("/dictionaries", params);
}
// 获取数据统计
export function getStatistic(params) {
  return request.get("/statistic", params);
}

// 消息发送
export function sendMsg(params) {
  return request.post("/message/push", params);
}

// 获取历史dmt数据
export function getHistoryProbe(params) {
  return request.get("/probe/history", params);
}

// 获取历史消息数据
export function getHistoryMessage(params) {
  return request.get("/message/history", params);
}
